home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Science
/
RLaB
/
help
/
scalar
< prev
next >
Wrap
Text File
|
1994-04-25
|
569b
|
32 lines
scalar:
Syntax: scalar ( A )
Description:
The scalar function attempts to cast (convert) it's argument
to a scalar.
scalar( 2 )
will produce a scalar with value 2.
scalar()
will produce a scalar with value of zero.
scalar(v[1])
will convert the 1st element of v to a scalar.
scalar(m[2;3])
will convert an element of a matrix to a scalar.
Scalar is provided mostly for symmetry with the matrix()
functions. Functionally it is not really necessary since scalar
references to matrices are automatically demoted to scalar
type.
See Also: matrix